/**
 * @author jtt
 * @time 2023-05-25 15:15 PM
 * @description 定义系统通用状态数据管理器对象
 */

import { defineStore } from 'pinia'

const useCommonStore = defineStore(
    'useCommonStore',
    {
        state():any{
            return {
                rid:0,
                isShow:false
            }
        },
        getters: {
            getId():any{
                return this.rid
            },
            getShow():any{
                return this.isShow
            }
        },
        actions: {
            setId(_newId:any){
                this.rid = _newId
            },
            setShow(_newShow:any){
                this.isShow = _newShow
            }
        }
    }
)

export default useCommonStore